/**
 * 
 */
package fr.greta.centreFormation.bean;

import java.util.ArrayList;



/**
 * @author Betty Boop
 *
 */
public class Cursus {

	private int idCursus;
	private String intituleCursus;
	private String descriptionCursus;
	String codeRomeCursus;
	ArrayList<UniteEnseignement> collectiondeUE = new ArrayList<UniteEnseignement>();
	private int idDomaine;
	
	/**
	 * @return the idDomaine
	 */
	public int getIdDomaine() {
		return idDomaine;
	}

	/**
	 * @param idDomaine the idDomaine to set
	 */
	public void setIdDomaine(int idDomaine) {
		this.idDomaine = idDomaine;
	}

	public ArrayList<UniteEnseignement> getAllUE(){
		return collectiondeUE;
	}

	/**
	 * 
	 */
	public Cursus() {
		super();
	}

	/**
	 * @return the idCursus
	 */
	public int getIdCursus() {
		return idCursus;
	}

	/**
	 * @param idCursus the idCursus to set
	 */
	public void setIdCursus(int idCursus) {
		this.idCursus = idCursus;
	}

	/**
	 * @return the intituleCursus
	 */
	public String getIntituleCursus() {
		return intituleCursus;
	}

	/**
	 * @param intituleCursus the intituleCursus to set
	 */
	public void setIntituleCursus(String intituleCursus) {
		this.intituleCursus = intituleCursus;
	}

	/**
	 * @return the descriptionCursus
	 */
	public String getDescriptionCursus() {
		return descriptionCursus;
	}

	/**
	 * @param descriptionCursus the descriptionCursus to set
	 */
	public void setDescriptionCursus(String descriptionCursus) {
		this.descriptionCursus = descriptionCursus;
	}

	/**
	 * @return the codeRomeCursus
	 */
	public String getCodeRomeCursus() {
		return codeRomeCursus;
	}

	/**
	 * @param codeRomeCursus the codeRomeCursus to set
	 */
	public void setCodeRomeCursus(String codeRomeCursus) {
		this.codeRomeCursus = codeRomeCursus;
	}

	/**
	 * @return the collectiondeUE
	 */
	public ArrayList<UniteEnseignement> getCollectiondeUE() {
		return collectiondeUE;
	}

	/**
	 * @param collectiondeUE the collectiondeUE to set
	 */
	public void setCollectiondeUE(ArrayList<UniteEnseignement> collectiondeUE) {
		this.collectiondeUE = collectiondeUE;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		String retour = "IdCursus => " + idCursus + "\n";
		retour += "   intituleCursus => " + intituleCursus + "\n";
		retour += "   descriptionCursus => " + descriptionCursus + "\n";
		retour += "   codeRomeCursus => " + codeRomeCursus + "\n";
		retour += "   collectiondeUE => \n";
		 for (UniteEnseignement uneUniteEnseignement : collectiondeUE) {
			retour += "   " + uneUniteEnseignement.getIdUniteEnseignement() + "=>" + uneUniteEnseignement.getIntituleUniteEnseignement() + "\n";
		}
		
		return retour;
//		return "Cursus [idCursus=" + idCursus + ", intituleCursus="
//				+ intituleCursus + ", descriptionCursus=" + descriptionCursus
//				+ ", codeRomeCursus=" + codeRomeCursus + ", collectiondeUE="
//				+ collectiondeUE + "]";
	}


	


}
